<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.org/ui">

    <h:body>
        <ui:composition>
            <!--1-->

            <ul id="mn" class="fl navtop">
                <li>
                    <h:outputLink value="/CMS_ADMIN/faces/SCR/home.xhtml">
                        Trang chủ                       
                    </h:outputLink>
                </li>
                <li>
                    <p:menubar style="height: 25px;margin: 0;padding: 0;width: 100%;border: none;background: navy;">
<!--                        thang coder -->
                <c:forEach var="listMenu" items="${loginBean.menu}">
                    <p:submenu label="#{listMenu.name}" > 
                        <c:forEach var="childMenu" items="${listMenu.listChild}"> 
                                
                            <p:menuitem value="#{childMenu.name}" 
                                            url="/tamnhat/#{childMenu.url}"
                                            style="color: #6666ff;width: 70%;"></p:menuitem>                                 
                                           
                            </c:forEach>
                        </p:submenu>
                    </c:forEach>
                        <!--<i class="snt"></i>-->
                    </p:menubar>
                    
                 </li>   
                <li>
                    <h:outputLink value="/CMS_ADMIN/faces/SCR/help.xhtml">
                        Hỗ trợ
                    </h:outputLink>
                    <!--<i class="snt"></i>-->
                </li>           
            </ul>
            <h:panelGrid columns="2" style="margin-top: -25px; margin-left: 1060px;">
                <h:panelGroup>
                    <h:outputLabel value="Xin chào  " for="opusr" style="color: #FFFFFF"/>
                    <h:outputLink id="opusr" value="/CMS_ADMIN/faces/SCR/modifyPass.xhtml" style="color: #FFFFFF">
                        <h:graphicImage library="images" name="user.png"/>
                        #{loginBean.strUserName},
                    </h:outputLink>
                </h:panelGroup>       
                <h:commandLink value="Thoát" action="#{loginBean.doLogout()}" style="color:#FFFFFF;text-decoration: none"/>
                <p:tooltip for="opusr" value="Thay đổi thông tin tài khoản" showEffect="fade" hideEffect="fade" style="background-color: white"/>
            </h:panelGrid>
        </ui:composition>
    </h:body>
</html>

